package com.ruoyi.develop.goodsSaledoGongxuUserMoney.service;

import java.util.List;

import com.ruoyi.develop.goodsSaledoGongxuUserMoney.domain.GoodsSaledoGongxuUserMoney;

/**
 * 报工列Service接口
 * @author qh
 * @date 2024-11-13
 */
public interface IGoodsSaledoGongxuUserMoneyService {
    /**
     * 查询报工列
     * @param id 报工列主键
     * @return 报工列
     */
    public GoodsSaledoGongxuUserMoney selectById(String id);

    /**
     * 查询报工列列表
     * @param entity 报工列
     * @return 报工列集合
     */
    public List<GoodsSaledoGongxuUserMoney> selectList(GoodsSaledoGongxuUserMoney entity);

    public List<GoodsSaledoGongxuUserMoney> listAndParent(GoodsSaledoGongxuUserMoney entity);
    public List<GoodsSaledoGongxuUserMoney> listByGongxuId(GoodsSaledoGongxuUserMoney entity);

    public GoodsSaledoGongxuUserMoney selectByGoodssaleId(String goodssaleId);
    /**
     * 新增报工列
     * @param entity 报工列
     * @return 结果
     */
    public int insert(GoodsSaledoGongxuUserMoney entity);

    public int insertBaogong(GoodsSaledoGongxuUserMoney entity);

    public int addBaogongHebing(GoodsSaledoGongxuUserMoney entity);
    /**
     * 修改报工列
     * @param entity 报工列
     * @return 结果
     */
    public int update(GoodsSaledoGongxuUserMoney entity);

    public int editBaogong(GoodsSaledoGongxuUserMoney entity);

    public int editZhijian(GoodsSaledoGongxuUserMoney entity);
    /**
     * 批量删除报工列
     * @param ids 需要删除的报工列主键集合
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    /**
     * 删除报工列信息
     * @param id 报工列主键
     * @return 结果
     */
    public int deleteById(String id);

    public int deleteByIdsUpdate(String id);

    public int zhijianAllUpdate(String[] ids);

    public int zhijianAllNoUpdate(String[] ids);
    public int updateStatusByParentId(String status,String parentId);
    public void updateAllNotLast(String gongyiId);
    public void updateLastById(String id);
}
